package com.hugh.lagoucloudgateway9002.service;

import com.hugh.lagoucloudgateway9002.service.impl.UserInfoServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: Hugh
 * @Date: 2020/7/24
 */
@FeignClient(value = "lagou-service-user",fallback = UserInfoServiceFallback.class,path = "/api/user")
public interface UserInfoServiceFeignClient {

    @GetMapping("/info/{token}")
    public String getEmailBytoken(@PathVariable("token") String token);
}
